Skip to content

Conversation

RokerHRO
Copy link

@RokerHRO RokerHRO commented Sep 4, 2025

The check for nullptr before calling delete or delete[] is not necessary, because these operators check for nullptr already itself, as required by the C++ standard.

POV-Ray's code has a lot of (newer?) code that don't check, and some (older?) code that does these unecessary checks.

This pull request removes the unnecessary checks but keep them when there are more to do, e.g. joining threads or calling other functions before the object is deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant